export const list = () => {
    return new Promise((resolve, reject) => {
        const arr = [];
        Array(10)
            .fill(0)
            .forEach((_, index) => {
                const obj = {
                    id: index + "" + Math.floor(Math.random() * 100),
                    time: Date.now(),
                    name: "项目" + index,
                    status: Math.floor(Math.random() * 2) + 1,
                    zzl: Math.floor(Math.random() * 100) / 100 + "%",
                    ipr: Math.floor(Math.random() * 100) / 100 + "%",
                    npv: Math.floor(Math.random() * 10000000),
                    jthsq: Math.floor(Math.random() * 100) / 100,
                    dthsq: Math.floor(Math.random() * 100) / 100
                };
                arr.push(obj);
            });
        setTimeout(() => {
            resolve({
                data: arr
            });
        }, 1000);


    })
}